import React, { FC } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
import ContractAddress from './ContractAddress/ContractAddress';
import PhoneNumber from './PhoneNumber/PhoneNumber';
import { UserInfo_Web } from '@/pages/_server/_class/Mine/UserInfo';
export interface IProps extends ICompProps {
    userInfo:  Partial<UserInfo_Web>
}
Other.defaultProps = {} as Partial<IProps>;
function Other(props: IProps) {
    const { className, style ,userInfo} = props;
    const localClassName = useClassName('Other', className);
    return <RootView className={localClassName} style={style}>
        <ContractAddress contractAddress={userInfo.contractAddress}></ContractAddress>
        <PhoneNumber phoneNumber={userInfo.userPhoneNumber}></PhoneNumber>
    </RootView>;
}
export default React.memo(Other as FC<IProps>);
const RootView = styled(View)`
    &.Other {
    }
`;
